<%-- 
    Document   : homeAdmin
    Created on : 12/08/2013, 09:54:07
    Author     : Thiago
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <title>SorriDent - O seu consultório odontológico em Florianópolis</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <!-- Bootstrap -->
        <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0-rc1/css/bootstrap.min.css">
        <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0-rc1/js/bootstrap.min.js"></script>
        <link href="/Consultorio/css/bootstrap.min.css" rel="stylesheet" media="screen">
        <link href="/Consultorio/css/estilo.css" rel="stylesheet" media="screen">

        <!-- JavaScript plugins (requires jQuery) -->
        <script src="http://code.jquery.com/jquery.js"></script>
        <!-- Include all compiled plugins (below), or include individual files as needed -->
        <script src="/Consultorio/js/bootstrap.min.js"></script>

        <!-- Enable responsive features in IE8 with Respond.js (https://github.com/scottjehl/Respond) -->
        <script src="/Consultorio/js/respond.js"></script>
    </head>
    <body>
        <div class="container">
            <div id="header">
                <div class="navbar navbar-static-top navCon" style="float:left">
                    <a class="navbar-brand corTexto" href="#">SorriDent</a>
                    <ul class="nav navbar-nav">
                        <li class="bordaNav"><a href="/Consultorio/perfilAdmin.jsp">Perfil</a></li>
                        <li><a href="/Consultorio/admin/consultaAdmin.jsp">Consultas</a></li>
                        <li><a href="/Consultorio/admin/agenda.jsp">Agenda</a></li>
                        <li><a href="/Consultorio/admin/examesAdmin.jsp">Exames</a></li>
                    </ul>
                </div>
                <div id="login">
                    <form method="POST" action="/Consultorio/ServletUsuario?cmd=sair">
                    <span class="input-group">Seja bem vindo(a)</span> <input class="btn btn-default" value="Sair" type="submit" style="padding: 0; width: 40px; float:right; margin-right: 35px; font-size: 12px; color:#428bca;" /> 
                    </form>
                </div>
            </div>   
        </div>
        <div class="container" style="margin-top: 40px">
            <div class="panel panel-primary">
                <div class="panel-heading">
                    <h3 class="panel-title" style="float:left; font-weight: bolder; font-size: 18px; margin-top: 2px"><a href="/Consultorio/perfilAdmin.jsp" style="text-decoration:none">Perfil</a></h3>
                    <li class="dropdown tituloPainel">
                        <a class="dropdown-toggle active" data-toggle="dropdown" href="/Consultorio/admin/pesqPaciente.jsp">
                            Pacientes <span class="caret"></span>
                        </a>
                        <ul class="dropdown-menu">
                            <li ><a href="/Consultorio/ServletPaciente?cmd=combo">Cadastrar</a></li>
                            <li ><a href="/Consultorio/admin/pesqPaciente.jsp">Pesquisar</a></li>
                        </ul>
                    </li>
                    <li class="dropdown tituloPainel">
                        <a class="dropdown-toggle" data-toggle="dropdown" href="/Consultorio/admin/pesqFuncionario.jsp">
                            Funcionários <span class="caret"></span>
                        </a>
                        <ul class="dropdown-menu">
                            <li ><a href="/Consultorio/ServletFuncionario?cmd=combo">Cadastrar</a></li>
                            <li ><a href="/Consultorio/admin/pesqFuncionario.jsp">Pesquisar</a></li>
                        </ul>
                    </li>
                    <li class="dropdown tituloPainel">
                        <a class="dropdown-toggle" data-toggle="dropdown" href="/Consultorio/admin/pesqConvenio.jsp">
                            Convênios <span class="caret"></span>
                        </a>
                        <ul class="dropdown-menu">
                            <li ><a href="/Consultorio/admin/cadConvenio.jsp">Cadastrar</a></li>
                            <li ><a href="/Consultorio/admin/pesqConvenio.jsp">Pesquisar</a></li>
                        </ul>
                    </li>
                    <h3 class="tituloPainel"><a href="#">Estatísticas</a></h3>
                </div>
                <div class="conteudo_admin">
                    <form method="POST" action="/Consultorio/ServletFuncionario?cmd=salvar" >
                        <fieldset>
                            <legend>Cadastro do funcionário</legend>
                            <div class="campoForm clear" style="width:450px">
                                <label for="inputNome">Nome:</label>
                                <input type="text" class="form-control" name="nome" placeholder="Nome completo">
                            </div>
                            <div class="campoForm clear" style="width:250px">
                                <label for="inputLogin">Login:</label>
                                <input type="text" class="form-control" name="login" placeholder="Login de usuário">
                            </div>
                            <div class="campoForm" style="width:200px">
                                <label for="inputSenha">Senha:</label>
                                <input type="password" class="form-control" name="senha" placeholder="Senha para login">
                            </div>
                            <div class="checkbox clear" style="margin-left: 15px">
                                <label>
                                    <input type="checkbox"> Enviar login e senha para o e-mail do funcionário?
                                </label>
                            </div>
                            <div class="campoForm clear" style="width:250px">
                                <label for="idFuncao">Função</label>
                                <select class="form-control" name="idFuncao">
                                    <option></option>
                                    <c:forEach var="funcao" items="${funcoes}">
                                        <option value="${funcao.id}">${funcao.nome}</option>
                                    </c:forEach>Ï
                                </select>              
                            </div>
                            <div class="campoForm clear" style="width:250px">
                                <label for="idFuncao">Salário</label>
                                <div class="input-group" style="width: 250px">
                                    <span class="input-group-addon"><a href="#">R$</a></span>
                                    <input type="text" class="form-control" name="salario" placeholder="Digite o salário">
                                </div>               
                            </div>
                            <div class="campoForm clear" style="width:250px">
                                <label for="inputCPF">CPF:</label>
                                <input type="text" class="form-control" name="cpf" placeholder="000.000.000-00">
                            </div>
                            <div class="campoForm" style="width:200px">
                                <label for="inputTelefone">Telefone:</label>
                                <input type="text" class="form-control" name="telefone" placeholder="(XX) XXXX-XXXX">
                            </div>
                            <div class="campoForm clear" style="width:250px">
                                <label for="inputEmail">E-mail:</label>
                                <input type="text" class="form-control" name="email" placeholder="email@email">
                            </div>
                            <div class="campoForm" style="width:200px">
                                <label for="inputData">Data de nascimento:</label>
                                <input type="text" class="form-control" name="data" placeholder="dd/MM/aaaa">
                            </div>
                            <legend>Endereço</legend>
                            <div class="campoForm clear" style="width:250px">
                                <label for="inputRua">Rua</label>
                                <input type="text" class="form-control" name="rua">
                            </div>
                            <div class="campoForm" style="width:200px">
                                <label for="inputBairro">Bairro</label>
                                <input type="text" class="form-control" name="bairro">
                            </div>
                            <div class="campoForm clear" style="width:250px">
                                <label for="inputCidade">Cidade</label>
                                <input type="text" class="form-control" name="cidade">
                            </div>
                            <div class="campoForm" style="width:200px">
                                <label for="inputEstado">Estado</label>
                                <input type="text" class="form-control" name="estado">
                            </div>
                            <div class="campoForm clear" style="width: 250px">
                                <label for="inputCEP">CEP</label>
                                <input type="text" class="form-control" name="cep">
                            </div>
                            <div class="clear"></div>
                            <input type="submit" value="Salvar" class="btn btn-primary btn-lg" style="margin-left: 15px" />
                        </fieldset>
                    </form>
                </div>
            </div>
        </div>
    </body>
</html>
